import request from '@/utils/request'

/**
 * 获取字典项
 */
export function getDictSelect(type) {
  return request({
    url: `/system/DictionaryData/getDicListByType`,
    method: 'post',
    data: { dictionaryType: type }
  })
}


//登录
export function login(data = {}) {
  return request({
    url: '/oauth/Login',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data
  })
}